package com.hy.admin.security.utils;

import com.alibaba.fastjson.JSONObject;

public class CommonResult {

	private int code;
	private String msg;
	private Object data;
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public JSONObject toJSONObject() {
		Object obj = JSONObject.toJSON(this);
		
		return JSONObject.parseObject(obj.toString());
	}
	
	
}
